package cn.minhx.lab.design_patterns.template_method.f2.impl;

import cn.minhx.lab.design_patterns.template_method.f2.OcrClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class BaiduOcrClient extends OcrClient {
    private static final Logger log = LoggerFactory.getLogger(BaiduOcrClient.class);

    @Override
    protected String getAccessToken() {
        log.info("ocr-baidu getAccessToken");
        return "ocr-baidu-token";
    }

    @Override
    protected String post(String url, String accessToken) {
        log.info("ocr-baidu post");
        return "ocr-baidu-body";
    }

    @Override
    protected String parseResult(String body) {
        log.info("ocr-baidu parseResult");
        return "ocr-baidu-result";
    }
}
